project(PDFKit)

remove_sdk_framework(PDFKit)

set(DYLIB_COMPAT_VERSION "1.0.0")
set(DYLIB_CURRENT_VERSION "1.0.0")

set(FRAMEWORK_VERSION "A")

generate_sdk_framework(PDFKit
    VERSION ${FRAMEWORK_VERSION}
    HEADER "include/PDFKit"
)

add_framework(PDFKit
    FAT
    CURRENT_VERSION
    VERSION ${FRAMEWORK_VERSION}

    SOURCES
        src/PDFKit.m
        src/PDFAccessibilityNodeAnnotation.m
        src/PDFAccessibilityAssociationInfo.m
        src/PDFAnnotationFreeTextPrivateVars.m
        src/PDFAnnotationFreeText.m
        src/PDFDocumentPrivate.m
        src/PDFDocument.m
        src/SelectionRectInfo.m
        src/PDFPageLayerEffectPrivate.m
        src/PDFSelectionLayer.m
        src/PDFPageLayerAnnotationEffect.m
        src/PDFPageLayerMarkupAnnotationEffect.m
        src/PDFPageLayerNoteEffect.m
        src/PDFPageLayerSelectionEffect.m
        src/PDFPageLayerScannerResultEffect.m
        src/PDFPageLayerEffect.m
        src/PDFViewLayoutPrivate.m
        src/PDFViewLayout.m
        src/PDFPasswordViewController.m
        src/PDFActionNamedPrivateVars.m
        src/PDFActionNamed.m
        src/PDFIconView.m
        src/PDFIconCollectionView.m
        src/PDFAccessibilityNodePagePrivate.m
        src/PDFAccessibilityNodePage.m
        src/PDFAnnotationLinePrivateVars.m
        src/PDFAnnotationLine.m
        src/PDFFormFieldPrivateVars.m
        src/PDFFormField.m
        src/PDFFormPrivateVars.m
        src/PDFForm.m
        src/PDFAccessibilityEffectLayerPrivate.m
        src/PDFAccessibilityEffectLayer.m
        src/PDFAccessibilityDocumentControllerPrivate.m
        src/PDFAccessibilityDocumentController.m
        src/PDFAccessibilityCustomRotorLoadingToken.m
        src/PDFMarkupStylePickerCellPrivate.m
        src/PDFMarkupStylePickerCell.m
        src/PDFMarkupStylePickerPrivate.m
        src/PDFMarkupStylePicker.m
        src/PDFClipView.m
        src/PDFScrollViewPrivate.m
        src/PDFScrollView.m
        src/PDFAnnotationCirclePrivateVars.m
        src/PDFAnnotationCircle.m
        src/PDFTileSurface.m
        src/TileRenderRequest.m
        src/PDFTilePoolPrivate.m
        src/PDFTilePool.m
        src/PDFAnnotationStampPrivateVars.m
        src/PDFAnnotationStamp.m
        src/PDFAccessibilityNodeTableCell.m
        src/PDFAKDocumentAdaptorPrivate.m
        src/PDFAKDocumentAdaptor.m
        src/PDFAKOverlayAdaptor_osx.m
        src/PDFAccessibilityNodeTablePrivate.m
        src/PDFAccessibilityNodeTable.m
        src/PDFThumbnailViewPrivate.m
        src/PDFThumbnailView.m
        src/PDFAccessibilityNodeText.m
        src/PDFCoachMark.m
        src/PDFCoachMarkManagerPrivate.m
        src/PDFCoachMarkManager.m
        src/PDFKitTextViewPrivate.m
        src/PDFKitTextView.m
        src/PDFAKOverlayAdaptorPrivate.m
        src/PDFAKOverlayAdaptor.m
        src/PDFAKAnnotationSerializationHelper.m
        src/PDFAnnotationChoiceWidgetPrivateVars.m
        src/PDFAnnotationChoiceWidget.m
        src/PDFAKPageAdaptorPrivate.m
        src/PDFAKPageAdaptor.m
        src/PDFAnnotationChangePrivate.m
        src/PDFAnnotationChange.m
        src/PDFSelectionTrackingData.m
        src/PDFLayerControllerPrivate.m
        src/PDFLayerController.m
        src/PDFHUDLayerControllerPrivate.m
        src/PDFHUDLayerController.m
        src/PDFAnnotationMarkupPrivateVars.m
        src/PDFAnnotationMarkup.m
        src/PDFAccessibilityNodeHeading.m
        src/PDFAppearanceCharacteristicsPrivate.m
        src/PDFAppearanceCharacteristics.m
        src/PDFAnnotationLinkPrivateVars.m
        src/PDFAnnotationLink.m
        src/PDFAnnotationButtonWidgetPrivateVars.m
        src/PDFAnnotationButtonWidget.m
        src/PDFAnnotationSquarePrivateVars.m
        src/PDFAnnotationSquare.m
        src/PDFAccessibilityNodePrivate.m
        src/PDFAccessibilityNode.m
        src/PDFViewControllerPrivate.m
        src/PDFViewController.m
        src/PDFSelectionPrivate.m
        src/PDFSelection.m
        src/PDFAnnotationTextPrivateVars.m
        src/PDFAnnotationText.m
        src/PDFAccessibilityNodeImage.m
        src/PageSignature.m
        src/PDFPageViewPrivate.m
        src/PDFPageView.m
        src/PDFAnnotationTextWidgetPrivateVars.m
        src/PDFAnnotationTextWidget.m
        src/PDFDocumentLayerPrivate.m
        src/PDFDocumentLayer.m
        src/PDFScannerResultPrivate.m
        src/PDFScannerResult.m
        src/PDFRevealManagerPrivate.m
        src/PDFRevealManager.m
        src/PDFActionURLPrivateVars.m
        src/PDFActionURL.m
        src/PDFAnnotationDrawing.m
        src/PDFPrintViewPrivate.m
        src/PDFPrintView.m
        src/PDFPagePrivate.m
        src/PDFPage.m
        src/PDFPasswordLayerControllerPrivate.m
        src/PDFPasswordLayerController.m
        src/PDFPageRangePrivate.m
        src/PDFPageRange.m
        src/PDFAnnotationCGPDFObject.m
        src/PDFAnnotationPrivateVars.m
        src/PDFAnnotation.m
        src/PDFActionResetFormPrivateVars.m
        src/PDFActionResetForm.m
        src/PDFRenderingPropertiesPrivate.m
        src/PDFRenderingProperties.m
        src/PDFDestinationPrivate.m
        src/PDFDestination.m
        src/PDFAnnotationInk.m
        src/PDFBorderPrivateVars.m
        src/PDFBorder.m
        src/PDFTimerPrivate.m
        src/PDFTimer.m
        src/PDFActionGoToPrivateVars.m
        src/PDFActionGoTo.m
        src/PDFKitPopupViewPrivate.m
        src/PDFKitPopupView.m
        src/PDFAccessibilityNodeTableRowPrivate.m
        src/PDFAccessibilityNodeTableRow.m
        src/PDFPageBackgroundManagerPrivate.m
        src/PDFPageBackgroundManager.m
        src/PDFAnnotationPopupPrivateVars.m
        src/PDFAnnotationPopup.m
        src/PDFViewPrivate.m
        src/PDFView.m
        src/PDFDocumentContentView.m
        src/PDFDocumentViewPrivate.m
        src/PDFDocumentView.m
        src/PDFOutlinePrivate.m
        src/PDFOutline.m
        src/PDFPageLayerTile.m
        src/PDFPageLayerPrivate.m
        src/PDFPageLayer.m
        src/PDFAKAnnotationAdaptorPrivate.m
        src/PDFAKAnnotationAdaptor.m
        src/PDFPageViewAnnotationControllerPrivate.m
        src/PDFPageViewAnnotationController.m
        src/PDFActionRemoteGoToPrivateVars.m
        src/PDFActionRemoteGoTo.m
        src/PDFActionPrivate.m
        src/PDFAction.m

    DEPENDENCIES
        system
        objc
        Foundation
        AppKit
)
